/**
 * 
 * 
 */

package com.coders.vimek.Javatutorials;
import java.lang.*;
/**
 * @author vimek
 *
 */
public class JavaControlFlowStatementsExample {

	/**
	 * @param args
	 * 
	 */int a,b;
JavaControlFlowStatementsExample()
	 {
		 a=20;b=17;
	 }
		 
public void checkvowel(char s)
{

//	c=s.charAt(0);
	
	switch(s)
	{
	case 'a':
		System.out.println("a is a vowel");	
	break;
	case 'e':
		System.out.println("e is a vowel");	
	break;
	case 'i':
		System.out.println("i is a vowel");	
	break;
	case 'o':
		System.out.println("o is a vowel");	
	break;
	case 'u':
		System.out.println("u is a vowel");	
	break;
	
	default:
		System.out.println(""+s+" is not a vowel");
	}


}

public void checkday(int s)
{
	switch(s)
	{
	case 1:
		System.out.println("Sunday");	
	break;
	case 2:
		System.out.println("Monday");	
	break;
	case 3:
		System.out.println("Tuesday");	
	break;
	case 4:
		System.out.println("Wednesday");	
	break;
	case 5:
		System.out.println("Thursday");	
	break;
	
	case 6:
	System.out.println("Friday");	
	break;
	case 7:
	System.out.println("Saturday");	
	break;
		
	default:
		System.out.println(""+s+" is not a valid day");
	}

	
}
	public void if_else_example()
	{
		if(a>b)
		{
			System.out.println("a= "+a+" is larger than "+b);
		}
		else
		{
			System.out.println("a="+a+"is smaller than"+b);
		}
		
	}
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		//read first argmnt from command line
		String name = args[0];
		char c=name.charAt(0);
		//read second argmnt from command line
		
		int i;
		String num = args[1];
		i=Integer.parseInt(num);
	
	
		//System.out.println(s);
		JavaControlFlowStatementsExample obj= new JavaControlFlowStatementsExample();
		obj.checkvowel(c);
		obj.if_else_example();
		obj.checkday(i);
	 

	}

}
